package com.lu.design.principle.openclose;

public class Test  {

    public static void main(String[] args) {
        ICourse iCourse = new JavaDiscountCourse(96, "Java从零到企业级电商开发", 348d);
        JavaDiscountCourse javaDiscountCourse = (JavaDiscountCourse) iCourse;
        System.out.println("id="+ javaDiscountCourse.getId() +", name="+ javaDiscountCourse.getName() +", originPrice=" + javaDiscountCourse.getOriginPrice() + ", price=" + javaDiscountCourse.getPrice());
    }
}
